<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.ajax4jsf.org/rich" xml:lang="en">
<head>
<title>个人信息修改</title>
<meta http-equiv="keywords" content="enter,your,keywords,here" />
<meta http-equiv="description"
	content="A short description of this page." />
<link href="#{facesContext.externalContext.requestContextPath}/css/public.css" rel="stylesheet" type="text/css"
	media="screen" />
<link href="#{facesContext.externalContext.requestContextPath}/css/main.css" rel="stylesheet" type="text/css"
	media="screen" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<!-- rich:message style-->
<style type="text/css">
	.rich-message-label{
		color:red;
	}
</style>
<script type="text/javascript" language="javascript">
	function msg(msgVar){
		//alert(sssss);
		//alert(document.getElementById("j_id2:msg").innerHTML);
		//document.getElementById("j_id2:msg").innerHTML=msgVar;
	}
</script>
</head>
<body style="background-color: #ffffff">
<h:form>
	<!-- 主键 -->
	<h:inputHidden id="tp_account" value="#{LoginBB.user.tp_account}"></h:inputHidden>   
	<div id="right">
	<div id="msgid" class="error pt10p bcf c0 tal" style="display:">
		<a4j:outputPanel  id="msgPanel">
		<center>
			<h:outputText id="msg" styleClass="cff" value="#{LoginBB.msg1}" />
		</center>
	</a4j:outputPanel>
	</div>
	<div class="tablelist">
	<table width="100%" border="1" cellpadding="0" cellspacing="0"
		bordercolor="#c3c3c3" style="border-collapse: collapse">
		<tr>
			<td cospan="3"><span class="cff">*</span>当前密码<h:inputText id="tp_password" type="text" value="#{LoginBB.curr_password}" required="true"
				 class="style_input" /></td>
		</tr>
		<tr>
			<td cospan="3"><rich:message for="tp_password" showSummary="true" showDetail="false" /></td>
		</tr>
		<tr>
			<td cospan="3"><span class="cff">*</span>新密码<h:inputText id="tp_new_password" type="text" value="#{LoginBB.new_password}" required="true"
				 class="style_input">
				<f:validateLength minimum="6"/>
				<f:validateLength maximum="20"/>
				 </h:inputText></td>	
		</tr>
		<tr>
			<td cospan="3"><rich:message for="tp_new_password" showSummary="true" showDetail="false" /></td>
		</tr>
		<tr>
			<td cospan="3"><span class="cff">*</span>新密码<h:inputText id="tp_new0_password" type="text" value="#{LoginBB.new0_password}" required="true"
				 class="style_input">
				<f:validateLength minimum="6"/>
				<f:validateLength maximum="20"/>
				 </h:inputText></td>	
		</tr>
		<tr>
			<td cospan="3"><rich:message for="tp_new0_password" showSummary="true" showDetail="false" /></td>
		</tr>
	</table>
	<div class="listbut">
		<a4j:commandButton action="#{LoginBB.modifySelfPass}" value="保存" reRender="msgPanel"  oncomplete="msg('#{LoginBB.msg1}')"  styleClass="buttonbg"/>
		</div>
	</div>
	</div>
</h:form>
</body>
</html>

